home *** CD-ROM | disk | FTP | other *** search
- IFND GRAPHICS_CARDS_I
- GRAPHICS_CARDS_I SET 1
-
- **
- ** $VER: cards.i V0.8B
- **
- ** (C) Copyright 1996-1997 DreamWorld Productions.
- ** All Rights Reserved
- **
-
- IFND DPKERNEL_I
- include 'games/dpkernel.i'
- ENDC
-
- IFND MODULE_CARDS_I
- include "modules/cards.i"
- ENDC
-
- ****************************************************************************
- * Module details.
-
- Cards_ModVersion = 0
- Cards_ModRevision = 8
-
- ****************************************************************************
- * The CardSet structure for playing cards.
-
- CSVERSION = 1
- TAGS_CARDSET = ((ID_SPCTAGS<<16)|ID_CARDSET)
-
- STRUCTURE CS1,HEAD_SIZEOF
- WORD CS_Card ;Card number to draw.
- WORD CS_AmtCards ;Number of cards in deck.
- LONG CS_AmtColours ;Amount of colours
- APTR CS_Palette ;Pointer to palette
- LONG CS_Options ;Options like GETPALETTE.
- LONG CS_Attrib ;Blitting attributes.
- APTR CS_Source ;File that the cardset comes from.
- APTR CS_Bob ;Bob structure.
- APTR CS_Owner ;Pointer to Bitmap owner.
- WORD CS_ScrMode ;Screen mode.
-
- *** Private fields start now ***
-
- BYTE CS_AFlags ;Record of previous allocations.
- BYTE CS_Pad ;Empty.
- WORD CS_CardWidth ;Card width rounded up 16 pixels
- LONG CS_CardSize ;Bytes used by each card.
- LONG CS_Viewmode ;OS Viewmode ID.
- LONG CS_RekoRaw ;Raw file - cardset
- LONG CS_TaglistBob ;Tag list used for Bob.
- LONG CS_GfxDirect ;Pointer to first graphic.
- LONG CS_GfxEnd ;LISTEND terminator for the above.
- LONG CS_MaskDirect ;Pointer to first mask.
- LONG CS_MaskEnd ;LISTEND terminator for the above.
- LABEL CS_SIZEOF
-
- ;CardSet Tags.
-
- CSA_AmtColours = TLONG|CS_AmtColours
- CSA_Palette = TAPTR|CS_Palette
- CSA_ScrMode = TWORD|CS_ScrMode
- CSA_Options = TLONG|CS_Options
- CSA_Attrib = TLONG|CS_Attrib
- CSA_Source = TAPTR|CS_Source
- CSA_Owner = TAPTR|CS_Owner
- CSA_BobTags = TSTEPIN|CS_Bob
-
- ;Flags for CardSet.
-
- SHUFFLE_NORMAL = 0 ;Mix some times.
- SHUFFLE_BABY = 1 ;Move blocks of card in a different position.
- SHUFFLE_CROUPIER = 2 ;Divide in two decks and then bend and releasing them.
- SHUFFLE_MACHINE = 3 ;Simulate a casino shuffling machine.
- SHUFFLE_GAMBLING = 4 ;Shuffle maintain blocks of cards closer.
- SHUFFLE_PARANOID = 5 ;Shuffle many many times.
-
- ENDC ;GRAPHICS_CARDS_I
-